﻿/****************************** Module Header ******************************\
 * Module Name:  tUserPermissionPermission.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
	/// tUserPermissionPermission 数据实体类
	/// </summary>
	[DBTable(Common="tUserPermissionPermission")]
	public class tUserPermissionPermission
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

		[DBColumn(Alias="Guid编号", IsKey=true)]
		private Guid? _ID;

		/// <summary>
		/// Name
		/// </summary>
		public string Name { get { return _Name; } set { _Name = value; } }

		[DBColumn(Alias="Name", CanBeNull=true, Length="32")]
		private string _Name;

		/// <summary>
		/// ParentID
		/// </summary>
		public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

		[DBColumn(Alias="ParentID", CanBeNull=true)]
		private Guid? _ParentID;

		/// <summary>
		/// Code
		/// </summary>
		public string Code { get { return _Code; } set { _Code = value; } }

		[DBColumn(Alias="Code", CanBeNull=true, Length="255")]
		private string _Code;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", CanBeNull=true)]
		private short? _Ordinal;

		/// <summary>
		/// 备注说明
		/// </summary>
		public string Remark { get { return _Remark; } set { _Remark = value; } }

		[DBColumn(Alias="备注说明", CanBeNull=true, Length="255")]
		private string _Remark;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedTime;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

		/// <summary>
		/// MenuUrl
		/// </summary>
		public string MenuUrl { get { return _MenuUrl; } set { _MenuUrl = value; } }

		[DBColumn(Alias="MenuUrl", CanBeNull=true, Length="255")]
		private string _MenuUrl;

		/// <summary>
		/// MenuID
		/// </summary>
		public Guid MenuID { get { return _MenuID ?? default(Guid); } set { _MenuID = value; } }

		[DBColumn(Alias="MenuID", CanBeNull=true)]
		private Guid? _MenuID;

	}
}
